import * as ElIcons from "@element-plus/icons-vue";
import { App } from "vue";
import { isValidKey } from "@/utils/is";

const init = (app: App) => {
  for (const name in ElIcons) {
    if (isValidKey(name, ElIcons)) {
      app.component(name, ElIcons[name]);
    }
  }
};
export default init;
